home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / CW9 ODFDraw built with RTTI & N < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.7 KB  |  [TEXT/ttxt]

  1. Subject:     CW9 ODFDraw built with RTTI & Native Exceptions
  2. Sent:        6/1/96 3:43 PM
  3. Received:    6/3/96 7:58 AM
  4. From:        Bill Hembree, whembree@Sigma4.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8.   Well, after a bit of work, we've managed to successfully rebuild ODFDraw
  9. (with some of our testing code added) using CodeWarrior's native exception
  10. handling and built-in RTTI.  This involved making Henri's changes as
  11. recommended in the CW9 notes and rebuilding all four (4) static libraries
  12. (ODUtils is not with the rest of the "Static Libraries" but must also be
  13. rebuilt).
  14.   We then had to re-pre-compile the .pch++ file for the project.  This
  15. later action is not automatic because it's source file is not included in
  16. the project.  The pch is ODF Dev:ODF:PrecompH:Sources:FWHeader.pch++, in
  17. case anyone else wants to play games like this.
  18.  
  19.   Incidentaly, when we rebuilt ODFDraw with these options changed, the file
  20. ended up at 885,268 with our little bit of code added.  This is admittely a
  21. large hit in size, but we did not optimize for anything and will probably,
  22. at least for testing, continue to use the native versions.  Does anyone
  23. here know why the native versions of RTTI & Exceptions cost so much in code
  24. size?
  25.  
  26.   I'd suggest that something needs to be done in the Examples to support
  27. both native and ODF implementations of RTTI/exceptions but I'm at a loss to
  28. suggest a clean and (reasonably) transparent way to do so.  I'm going to
  29. suggest to MW that CW10 include linker warnings when attempting to link
  30. libraries that were compiled with a different set of options and possibly
  31. the same for precompiled headers during compilation.
  32.  
  33. Bill
  34.  
  35.